﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditRehabStatusCodesControl.ascx.cs"
    Inherits="LenderClearingHouse.EditRehabStatusCodesControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .style1
    {
        width: 200px;
    }
    .style2
    {
        width: 146px;
    }
    .style3
    {
        width: 164px;
    }
</style>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">
    <table cellspacing="1" cellpadding="1" width="100%" border="0">
        <tr>
            <td valign="top">
                <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">
                        <tr>
                            <td width="10%">
                                Code:
                            </td>
                            <td style="padding-left: 20px" class="style3">
                                <asp:TextBox ID="tbCode" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Code" ) %>' TextMode="SingleLine" Width="100%"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbCode"
                                    ErrorMessage="Code is required" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Description:
                            </td>
                            <td style="padding-left: 20px" class="style3">
                                <asp:TextBox ID="tbDescription" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Description" ) %>' Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
            </td>
        </tr>
    </table>
</telerik:RadAjaxPanel>
<table>
    <tr>
        <td align="left" colspan="4" style="padding-left: 20px; padding-top: 10px;">
            <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'>
            </asp:Button>
            <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert"
                Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>'></asp:Button>
            &nbsp;
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                CommandName="Cancel"></asp:Button>
        </td>
    </tr>
</table>
<asp:HiddenField ID="hfRehabStatusCodesId" runat="server" Value='<%# DataBinder.Eval( Container, "DataItem.RehabStatusCodesId" ) %>' />
